package com.ai.model.edu.log.es;


public class EsQuery {

	private Query query;
	
	private Facets facets;

	public Query getQuery() {
		return query;
	}

	public void setQuery(Query query) {
		this.query = query;
	}

	public Facets getFacets() {
		return facets;
	}

	public void setFacets(Facets facets) {
		this.facets = facets;
	}
	
	
	
//	public static void main(String[] args) {
//		
//		
//		EsQuery esquery = new EsQuery();
//		
//		Query query = new Query();
//		QueryString query_string = new QueryString();
//		query_string.setQuery("T*");
//		query.setQuery_string(query_string);
//		esquery.setQuery(query);
//		
//		Facets facets = new Facets();
//		Tags tags = new Tags();
//		Terms terms = new Terms();
//		terms.setField("request_time");
//		tags.setTerms(terms);
//		facets.setTags(tags);
//		esquery.setFacets(facets);
//		
//		String s = JsonUtils.toJson(esquery);
//		System.out.println(s);
//	}
}
